﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Serialization;

namespace XEvents.Library
{
    [XmlRoot("Maps")]
    public class MapCollection : List<Map>
    {
        public MapCollection(IEnumerable<Map> maps)
            : base(maps)
        { }

        public Map this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
